javac testJNI.java
javac -h . testJNI.java

gcc -m64 -Wl,--add-stdcall-alias -I"%JAVA_HOME%\include" -I"%JAVA_HOME%\include\win32"  -shared -o cpluslib.dll testJNI.cpp
 
java   testJNI 

